package model

import "time"

type Question struct {
	Id uint64 `json:"id" gorm:"auto_increment"`
	Title string `json:"title" form:"title"`
	Content string `json:"content" form:"content"`
	AuthorId uint64 `json:"author_id" form:"author_id"`
	Author string `json:"author" form:"author"`
	CreateTime time.Time `json:"create_time" form:"create_time"`
	UpdateTime time.Time `json:"update_time" form:"update_time"`
	OjId uint64 `json:"oj_id" form:"oj_id"`
	SampleInput string `json:"sample_input" form:"sample_input"`
	SampleOutput string `json:"sample_output" form:"sample_output"`
}

func (Question) TableName() string{
	return "gr_question"
}
